import { Select, type SelectProps } from "antd";

type Props = Omit<SelectProps, "options" | "mode">;
export default function (props: Props) {
	return (
		<Select
			{...props}
			allowClear
			placeholder="组合键"
			mode="tags"
			options={[
				{ label: "Ctrl", value: "ctrlKey" },
				{ label: "Shift", value: "shiftKey" },
				{ label: "Alt", value: "altKey" },
				{ label: "Meta（Windows键或Command键）", value: "metaKey" },
			]}
		/>
	);
}
